<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ include file="/taglibs.jsp" %>
<head>

</head>
<body>
	<div class="page-header">
	  <h3><s:text name="module.catalog.editCatalog"/></h3>
	</div>
	
	
	<form id="newCatalogForm" action="catalog!update.action" validate="true" class="form-horizontal" autocomplete="off" method="POST">
			<div class="control-group">
				<label class="control-label" for="catalogId">
					<s:text name="icon.asterisk"/><s:text name="module.common.id"/></label>
				<div class="controls">
					<s:hidden id="oldCatalogId" name="catalog.id"/>
					<s:textfield id="catalogId" name="catalog.id" maxlength="30" cssClass="string required" disabled="true"/>
				</div>	
			</div>
			<div class="control-group">
				<label class="control-label" for="catalogName">
					<s:text name="icon.asterisk"/><s:text name="module.common.name"/></label>
				<div class="controls">
					<s:textfield id="catalogName" name="catalog.name" maxlength="50" cssClass="string required" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="catalogNameEn">
					<s:text name="icon.asterisk"/><s:text name="module.common.nameEn"/></label>
				<div class="controls">
					<s:textfield id="catalogNameEn" name="catalog.nameEn" maxlength="50" cssClass="string required" />
				</div>
			</div>
			<div class="control-group">
				<s:label cssClass="control-label" key="module.common.description" for="description"/>
				<div class="controls">
					<s:textarea  id="description" label="" name="catalog.description" rows="5" cols="65"/>
				</div>
			</div>
		<div class="control-group">
			<div class="controls">
				<button id="save" type="submit" class="btn btn-primary"><s:text name="button.save"/></button>
				<button id="cancel" type="button" class="btn"><s:text name="button.cancel"/></button>
			</div>
		</div>
	</form>
<script type="text/javascript">
$(function() {
	$("#cancel").click(function(){window.location='catalog!index.action';});
	$("#newCatalogForm").validate({});
	$("#catalogName").focus();
});//end
</script>
</body>
